package com.jiguang.jiekouhuidiaoceshi.AsynCallBack;/**
 * Created by apple on 16/8/30.
 */

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.jiguang.jiekouhuidiaoceshi.R;


/**
 * 作者：ban on 16/8/30 18:02
 */
public class MyTaskActivity extends Activity implements ChangeTitle {

    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mTextView = (TextView) findViewById(R.id.tv);
        new MyTask(this).execute("我是标题");
    }

    @Override
    public void onChangeTitle(String title) {
        mTextView.setText(title);
    }
}
